package com.yix.admin.modules.system.entity.dto;

import com.yix.common.base.BaseDTO;
import lombok.Data;

import java.io.Serializable;
import java.sql.Timestamp;
import java.util.Date;
import java.util.Objects;
import java.util.Set;

/**
 * @author wdx
 * @version 1.0
 * @Description TODO
 * @date 2021/1/28 15:40
 */
@Data
public class SysRoleDto extends BaseDTO implements Serializable {

    private String id;

    private Set<SysMenuDto> menus;

    private Set<SysDeptDto> depts;

    private String name;

    private String dataScope;

    private Integer level;

    private String remark;

    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (o == null || getClass() != o.getClass()) {
            return false;
        }
        SysRoleDto roleDto = (SysRoleDto) o;
        return Objects.equals(id, roleDto.id);
    }

    @Override
    public int hashCode() {
        return Objects.hash(id);
    }
}
